<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <title>投诉详情-{$tpshop_config['shop_info_store_title']}</title>
    <meta name="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
    <meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
    <link rel="stylesheet" href="__STATIC__/css/index.css" type="text/css">
    <link rel="stylesheet" href="__STATIC__/css/myuser.css" type="text/css">
  <script src="__PUBLIC__/js/layer/layer.js"></script><!-- 弹窗js 参考文档 http://layer.layui.com/-->
</head>

<body>
<!--------头部开始-------------->
<include file="Public/header" />
<include file="Public/topnav" />
<!--------头部结束-------------->

<div class="page_pad">
  <div class="page_margin">
    <div class="page_radius page_hidden">
      <div class="page_padin">
        <div class="user_page">
          <div class="user_poi">当前位置：首页 &gt; <span>我的投诉</span></div>
          <div class="user_left">
            <include file="User/userleft" />
          </div><!--user_left-->

          <div class="user_right">
            <div class="order_page">
              <div class="uright_tabs">
                <ul>
                  <li><a class="on" href="javascript:void(0)">我的投诉</a></li>
                  <!--<li><a href="/Home/User/order_list.html">我的评价</a></li>-->
                  <div class="clear"></div>
                </ul>
              </div>
              
              <div class="complain_page">
                <div class="sellpad"><div class="seller_tit"><p>提交时间</p></div></div>
                <div class="sellpad"><div class="user_content"><i class="icon-dengdaiqueren"></i> {$info.add_time|date='Y-m-d H:i:s',###}</div></div>
                <div class="sellpad"><div class="seller_tit"><p>投诉内容</p></div></div>
                <div class="sellpad">
                  <div class="user_content">
                    {$info.content}
                  </div>
                </div>

                <div class="sellpad"><div class="seller_tit"><p>投诉回复</p></div></div>
                <div class="sellpad">
                  <div class="user_content">
                    <foreach name="lists" item="v" key="k" >
                      {$v.add_time|date='Y-m-d H:i:s',###} |<if condition="$v.user_id gt 0">  {$v.user_id|get_user_name} <else/> 管理员 </if>| 回复：   {$v.content} <br/>
                    </foreach>


                   <!-- <if condition="$info[up_time] gt 0">
                      {$info.up_time|date='Y-m-d H:i:s',###}  回复：<br/>   {$info.admin_reply}

                      <else/>
                        暂无回复
                    </if>-->
                  </div>




                </div>



                <div class="sellpad"><div class="seller_tit"><p>回复</p></div></div>
                <div class="sellpad">
                  <div class="user_content">
                    <form  id="form1" action="{:U('c_reply')}" method="post" >
                      <input id="id" name="id" type="hidden" value="{$info.id}">
                      <br/>


                      <input id="content" name="content" type="text"  >

                      <input   type="button" value="提交" onclick="check_form();">
                    </form>
                    
                    <script>
                      function check_form(){
                          var conetnt=$('#content').val();

                          if(conetnt==''||conetnt==null)
                          {
                              alert('内容不能为空');
                              return false;
                          }
                          $('#form1').submit();
                      }
                    </script>
                    



                    <!-- <if condition="$info[up_time] gt 0">
                       {$info.up_time|date='Y-m-d H:i:s',###}  回复：<br/>   {$info.admin_reply}

                       <else/>
                         暂无回复
                     </if>-->
                  </div>
                </div>
                <div class="sellpad"><a class="gbutton gbutton_col1" href="{:U('Home/User/my_complain')}">返回</a> <a class="gbutton gbutton_col2" style="margin-left:10px;" href="javascript:void(0)" onclick="del_info({$info.id})">删除投诉</a></div>
              </div><!--complain_page-->
            </div><!--order_page-->
          </div><!--user_right-->
          <div class="clear"></div>
        </div><!--user_page-->
      </div><!--page_padin-->
    </div><!--page_radius-->
  </div><!--page_margin-->
</div><!--page_pad-->

<script>
function del_info(id)
{
	layer.confirm('确定删除吗？', {
		title: "提示",
		btn: ['确定','取消'] //按钮
		}, function(){
			location.href = "/index.php?m=Home&c=User&a=delete_complain&id="+id;
		}
	);
}
</script>

<!--------footer-开始-------------->
<include file="Public/footer" />
<!--------footer-结束-------------->

</body>
</html>